package esc1Caso2;

import aima.search.framework.HeuristicFunction;;

public class Heuristico implements HeuristicFunction{
	
	private double k;
	
	public Heuristico(double k) {
		this.k = k;
	}

	@Override
	public double getHeuristicValue(Object arg0) {
		Estado estado = (Estado) arg0;
		return (1-k)*(estado.getMediaTiempo()) + (k * estado.calcularStDev());
	}

}
